﻿<Window x:Class="Gao.Poker.App.Win.MemberWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="会员选择" Height="410" Width="450" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" >
    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal" Margin="5">
            <TextBlock Text="姓名：" Margin="10,5,0,5"/>
            <TextBox Name="txtName" Width="100" Margin="0,5,0,5"/>
            <TextBlock Text="会员号：" Margin="5,5,0,5"/>
            <TextBox Name="txtCardNo" Margin="0,5,0,5" Width="100"/>
            <Button x:Name="btnSearch" Margin="80,5,5,5" Width="45" Style="{DynamicResource Orrange}" Content="查询" RenderTransformOrigin="0.491,0.394" />
        </StackPanel>
        <DataGrid Margin="1,1,1.2,1" VerticalAlignment="Top" RowHeight="30" AutoGenerateColumns="False"
                      SelectionMode="Single"  CanUserAddRows="True" CellStyle="{StaticResource Body_Content_DataGrid_Centering}"
                      AlternatingRowBackground="Gainsboro"  AlternationCount="2" IsReadOnly="True"
                      FontSize="16" Height="297" Name="dgMembers" >
            <DataGrid.Columns>
                <DataGridTextColumn Header="ID" Width="40" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=ID}"/>
                <DataGridTextColumn Header="卡号" Width="120" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=CardNo}"/>
                <DataGridTextColumn Header="姓名" Width="80" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Name}"/>
                <DataGridTextColumn Header="手机号" Width="100" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Telephone}"/>
                <DataGridTextColumn Header="积分" Width="*" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Points}"/>
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="确定" Name="btnSubmit" Width="60" Margin="5" Height="30" Style="{DynamicResource Orrange}"/>
    </StackPanel>
</Window>
